﻿<div>

<h2>JavaScript 代码：</h2>
<textarea name="dp-syntaxhighlighter" class="brush: js; highlight: [4,9,10]" >
    
    $(function () {
        $("#win1").window({
            title: "test window1", top: 120, left: 160, width: 250, height: 150,
            inContainer: true
        });

        $("#win2").window({
            title: "test window2", top: 120, left: 160, width: 250, height: 150,
            inline: true,
            inContainer: true
        });
    });

</textarea>
<h2>HTML 代码：</h2>
<textarea name="dp-syntaxhighlighter" class="brush: html; highlight: []" >
    
    <div id="win1">您可以拖动我试试，您会发现我不能被拖出当前这个页面</div>
    <div style="border-width: 1px; border-color: Black; border-style: solid; width: 800px; height: 600px; position: relative;">
        <div id="win2">您可以拖动我试试，您会发现我不能被拖出这个外框</div>
    </div>

</textarea>


</div>